package com.piece.core.pay.client.impl.alipay;

import com.piece.core.framework.exception.ErrorCode;
import com.piece.core.pay.client.AbstractPayResponseMapping;
import java.util.Objects;

public class AliPayResponseMapping extends AbstractPayResponseMapping {

    @Override
    protected ErrorCode convert(String apiCode, String apiMsg) {
        if (Objects.equals(apiCode, "10000")) {
            return ErrorCode.SUCCESS;
        }
        return null;
    }
}
